import request from '@/utils/request'

// 查询供应商对账单详细
export function getSettleCheckSheetList(params) {
  return request({
    url: '/system/SettleCheckSheet/query',
    method: 'get',
    params: {
      startDate: params.startDate,
      endDate: params.endDate,
      supplierId: params.supplierId,
    }
  })
}

// 查询供应商对账单列表
export function listSettleCheckSheet(query) {
  return request({
    url: '/system/SettleCheckSheet/list',
    method: 'get',
    params: query
  })
}

// 查询供应商对账单详细
export function getSettleCheckSheet(id) {
  return request({
    url: '/system/SettleCheckSheet/' + id,
    method: 'get'
  })
}

// 新增供应商对账单
export function addSettleCheckSheet(data) {
  return request({
    url: '/system/SettleCheckSheet',
    method: 'post',
    data: data
  })
}

// 修改供应商对账单
export function updateSettleCheckSheet(data) {
  return request({
    url: '/system/SettleCheckSheet',
    method: 'put',
    data: data
  })
}

// 删除供应商对账单
export function delSettleCheckSheet(id) {
  return request({
    url: '/system/SettleCheckSheet/' + id,
    method: 'delete'
  })
}
